import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.util.UUID;

public class Student implements Serializable {
    private static final long serialVersionUID = 1L;

    public String id;
    public String name;
    public String password;
    public int age;
    public int acount;
    public int newAcount;

    public Student() {
    }

    public Student(String name, String password, int age, int acount) {
        this.id = UUID.randomUUID().toString();
        this.name = name;
        this.password = password;
        this.age = age;
        this.acount = acount;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAcount() {
        return acount;
    }

    public void setAcount(int acount) {
        this.acount = acount;
    }

    public int getNewAcount() {
        return newAcount;
    }

    public void setNewAcount(int newAcount) {
        this.newAcount = newAcount;
    }
}